home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: merlin.hgc.edu!weat4122
- From: weat4122@hgc.edu (gerard weatherby)
- Subject: Re: Automatic data segment ???
- Message-ID: <1996Jan24.042823.29086@merlin.hgc.edu>
- Sender: usenet@merlin.hgc.edu (Action News Central)
- Organization: The Hartford Graduate Center
- References: <NEWTNews.822036255.26727.danipear@dialup.netvision.net.il> <4dun33$agf@news.cyberportal.net>
- Date: Wed, 24 Jan 1996 04:28:23 GMT
-
- In article <4dun33$agf@news.cyberportal.net> dtrues <204.97.234.41> writes:
- >Dani Pear <danipear@netvision.net.il> wrote:
- >>
- >>Hi,
- >>In our windows application that is in C++, we can not
- >>link and create an EXE, and we receive the following
- >>message: "Automatic data segment exceeds 64K".
- >>What are the reasons for this error.
- >>
- >>Email : danipear@netvision.net.il
- >>
- >
- >
- >We have run into the same problem. It seems that you are only allowed
- >64K of space for the heap, stack, and all of the automatic variables used
- >in the code (or something to that effect). Keep in mind that an array of
- >classes can tie up memory quickly. We get around that by dynamically
- >allocating most of our classes. We use the large memory model and
- >nothing but far pointers. (You will need to use far pointers,
- >otherwise you will be allocating memory from the local heap, which
- >tends to fill up pretty quickly. We have developed a library that will
- >allow us to use more than the 640K memory on todays computers. The
- >method is described in Peter Norton and Pal Yao's book on windows
- >programming.
- >
- >Good luck and get out of Bill's 16-bit environment as soon as possible.
- >
- >Dan
- >
-
- If you're using Visual C++ 1.52, look into the eliminate duplicate
- strings switch /Gf, I think, and the /Gt automatic far data switches.
-